package com.aftersale.demo.mapper;

import com.aftersale.demo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @Entity com.aftersale.demo.entity.User
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("select *from user where username=#{username}")
    User login(User user);
    @Select("select username from user where username=#{username}")
    User exits(User user);
    @Insert("insert into user(username,password,md5) values(#{username},#{password},#{md5})")
    void register(User user);
}




